package string;
/*
  String replaceAll(String regex,String s)
 */
public class ReplaceAllDemo {
    public static void main(String[] args) {
        String line = "abc123def456ghi789";
        line = line.replaceAll("[0-9]+","**");
        System.out.println(line);
    }
}
